/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     simpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         10;

deltaT          1;

writeControl    runTime;

writeInterval   50;

purgeWrite      1; // 清除上一时间步计算结果

writeFormat     binary; // 二进制写入，精度较高

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

functions
{
// NOTE: 调用定制程序并链接到主求解器
pipeCalculator
{
    functionObjectLibs ("libpipeCalc.so");
    type pipeCalcu;

    faceZoneName planeFaceZone;
    UName U;

    writeInterval timeStep;
    writeInterval 1;
}
}

// ************************************************************************* //
